home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Fatted Calf
/
The Fatted Calf.iso
/
Applications
/
Unix
/
Piper
/
SampleScripts
/
ExamineTar(Z)
/
script
< prev
Wrap
Text File
|
1993-01-25
|
491b
|
13 lines
#!/bin/csh
if ! -f "$1" then
echo ExamineTar\(Z\): I can only examine files! > /dev/console
exit(-1)
else if "$1" =~ *.tar.Z then
( echo It is a tarred and compressed directory with the following contents: ; zcat "$1" | tar tf - ) | open
else if "$1" =~ *.tar then
( echo It is a tarred directory with the following contents: ; cat "$1" | tar tf - ) | open
else
echo ExamineTar\(Z\): You gave me a file with the wrong extension! > /dev/console
exit(-1)
endif